package com.yjps.system.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by jessy on 2015/8/19.
 */
@Entity
@Table(name = "t_agents")
public class Agent extends BaseModel{

    /**
     * 经纪人经理的id
     */
    @Column(name = "user_id")
    private int userId;
    @Column(name = "shop_id")
    private int shopId;
    @Column(name = "agents_sex")
    private int sex;
    @Column(name = "agents_icon")
    private String icon;
    @Column(name = "agents_description")
    private String description;
    /**
     * 经纪人积分
     */
    @Column(name = "agents_sorce")
    private String score;
    /*@Column(name = "agents_level")
    private String level;*/
    @Column(name = "agents_state",columnDefinition="INT default 1")
    private int state;

    @Column(name = "agents_join_time")
    private String joinTime;

    /*便于view 层显示 其实是user的realName*/
    @Transient
    private String agentName;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }


    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }



    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }


    public String getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(String joinTime) {
        this.joinTime = joinTime;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }
}
